package com.aholu.dao;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * @author aholu
 *
 * @param <T>
 * @param <ID>
 */
public interface GenericDao<T, ID extends Serializable> {
	 
    T findById(ID id, boolean lock);
 
    List<T> findAll();
 
    List<T> findByExample(T exampleInstance);
 
    T makePersistent(T entity);
 
    void makeTransient(T entity);
}

